import request from '@/utils/request'

// 查询物流运输列表
export function listTransport(query) {
  return request({
    url: '/aid/transport/list',
    method: 'get',
    params: query
  })
}

// 查询物流运输详细
export function getTransport(transportId) {
  return request({
    url: '/aid/transport/' + transportId,
    method: 'get'
  })
}

// 新增物流运输
export function addTransport(data) {
  return request({
    url: '/aid/transport',
    method: 'post',
    data: data
  })
}

// 修改物流运输
export function updateTransport(data) {
  return request({
    url: '/aid/transport',
    method: 'put',
    data: data
  })
}

// 删除物流运输
export function delTransport(transportId) {
  return request({
    url: '/aid/transport/' + transportId,
    method: 'delete'
  })
}

// 发货
export function deliveryTransport(data) {
  return request({
    url: '/aid/transport/delivery',
    method: 'put',
    data: data
  })
}

// 完成运输
export function completeTransport(data) {
  return request({
    url: '/aid/transport/complete',
    method: 'put',
    data: data
  })
}

// 导出物流运输
export function exportTransport(query) {
  return request({
    url: '/aid/transport/export',
    method: 'get',
    params: query
  })
} 